home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9579 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: BASM; in TC++
  5. Date: 2 Mar 1996 21:22:48 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4hae78$ile@news1.usa.pipeline.com>
  8. References: <31383B22.A13@algonet.se>
  9. NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 02, 1996 13:12:18 in article <BASM; in TC++>, 'Marcus G Johansson
  16. <astro1@algonet.se>' wrote: 
  17.  
  18.  
  19. >I've been trying to write some assembler in TC++ (BASM), but I can't write
  20.  
  21. >labels, no matter how I write em (tried lot's of ways) it don't work..
  22. Either I  
  23. >declared it wrong or it's not existing when I make the jump, so how do I
  24. do  
  25. >it? 
  26. The labels must be outside any asm block(s).  Example: 
  27.  
  28.   int foo = 0; 
  29.   asm { 
  30.          mov ax,foo 
  31.          add ax,20 
  32.         } 
  33.   int bar; 
  34.   asm { 
  35.         mov bar,ax 
  36.         .... 
  37.      } 
  38.  here: 
  39.   asm { 
  40.      xor    ax,ax 
  41.      jz     here 
  42.    } 
  43.  
  44. -- 
  45. Pete Grant 
  46. Kalevi, Inc. 
  47. Software Engineering & development
  48.